package contest.oop.sse.message;

import java.security.PublicKey;

/**
 * Server Hello 消息
 *
 * @author paule
 */
public class ServerHelloMessage extends Message {
    private int random2;
    private String chosenAlgorithm;
    private PublicKey publicKey;

    public ServerHelloMessage(int random2, String chosenAlgorithm, PublicKey publicKey) {
        this.random2 = random2;
        this.chosenAlgorithm = chosenAlgorithm;
        this.publicKey = publicKey;
    }

    public int getRandom2() {
        return random2;
    }

    public String getChosenAlgorithm() {
        return chosenAlgorithm;
    }

    public PublicKey getPublicKey() {
        return publicKey;
    }
}
